﻿<?php
include("function.php");
judgeLogin();
$user_id = getUserId($_SESSION['login_mail']);


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--<meta http-equiv="X-UA-Compatible" content="IE=7" /><!--如果是IE8时强制以IE7显示-->
<meta name="keywords" content="食品笔记,食品,食品安全,饮食,饮食安全,生活"><!--SEO关键字-->
<meta name="description" content="食品笔记，你的饮食安全卫士"><!--SEO描述-->
<link rel="shortcut icon" type="image/ico" href="images/favicon.ico"><!--选项卡图标-->
<title></title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/style.css">
<!--[if ie]>
<link rel="stylesheet" href="css/ie.css">
<script type="text/javascript" src="js/DD_belatedPNG.js" ></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png');/*在需要png透明的元素里面加上.png样式即可（class="png"）*/
</script>
<![endif]-->
<script>
		function toQzoneLogin()
		{
			var A=window.open("qq/oauth/qq_login.php","TencentLogin","width=450,height=320,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
		} 
	</script>
</head>

<body>
	<div class="header w "><!-- header -->
		<div class="index-header w960 h bc">
			<a href="index.php" class="logo dib png fl mt10"></a>
		</div>
	</div>
	<div class="reg_main w oh">
		<div class="w960 bc h mb100 mt30">
			<div class="reg_left fl mb100">
				<h2 class="f24 h2 mb10">修改密码 <a href="home.php" class="a4 f14">[返回]</a></h2>      
				<form action="" method="POST" id="regist_show" class="reg_form">
					<fieldset>
						<p class="mt20">
							<label class="reg_label fl tr w50 mr10" for="email">原密码</label>

							<input value="<?php echo $_POST['orginPassword'];?>" class="reg_text pr5 pl5" name="orginPassword" id="login_email" type="password" value="" />
							<label class="reg_error" generated="true" id="login_pass_tips" for="password"></label><!-- 邮件判断 -->
							<div class="greenPrompt fl none">
								<div class="greenPromptCenter fl co3 f12"></div>
							</div>
						</p>
						<p class="mt20">
							<label class="reg_label fl tr w50 mr10" for="password">新密码</label>
							<input class="reg_text pr5 pl5" name="newPassword" id="login_pass" type="password" />
							<label class="reg_error" generated="true" for="password" id="login_pass_tips">最短6位，区分大小写。</label><!-- 密码判断 -->
						</p>
						<p class="mt20">
							<label class="reg_label fl tr w50 mr10" for="password">新密码</label>
							<input class="reg_text pr5 pl5" name="reNewPassword" id="login_pass" type="password" />
							<label class="reg_error" generated="true" for="password" id="login_pass_tips">请再次确认密码。</label><!-- 密码判断 -->
						</p>						
						<p class="mt20 pl60">
								<span class="f12"><a href="" target="_blank">忘记密码？</a></span>
						</p>
						<p class="mt20 pl60">
							<input class="reg_sub f16" hidefocus="true" value="确认" id="password_submit" type="submit" />
							<input value="true" type="hidden" name="password_submit" />
							<label class="ml10">
								<?php
									//登陆失败提示框
									require_once("password.class.php");
								?>
							</label>
						</p>
					</fieldset>
				</form>
			</div>
    		<div class="reg_right fl">
    			<div class="now-reg mb40">还没有注册账号？ <a href="register.php" class="a4">[立即注册]</a></div>
    			<p class="f18">合作网站帐号登录</p>
    			<ul class="terrace">
    					<li class="mt15"><a href="#" onclick='toQzoneLogin()'><img src="qq/img/qq_login.png"></a></li>
    			<!--	<li class="mt15"><a href="" class="reg_a_icon reg_tencent db score_img">腾讯微博</a></li>
    				<li class="mt15"><a href="" class="reg_a_icon reg_sohu db score_img">搜狐微博</a></li>
    				<li class="mt15"><a href="" class="reg_a_icon reg_163 db score_img">网易微博</a></li>-->
    			</ul>
    		</div>

		</div>
	</div>
	<div class="footer w"><!-- footer -->
		<div class="w960 bc pr">
			<div class="welcome-footer bc">
				<span class="iphone-app-img dib png fl"></span><a href="#" class="iphone-app f12 a3 fl">iphone应用</a><a href="#" class="android-app f12 a3 fr">android应用</a><span class="android-app-img dib png fr"></span>
			</div>
			<div class="welcome-about mb10">
				<p class="f12 tc"><a href="#" class="a3">关于我们</a><span class="ml10 mr10">|</span><a href="#" class="a3">使用条款</a><span class="ml10 mr10">|</span><a href="#" class="a3">常见问题</a></p>
			</div>
			<div class="welcome-about f12 tc">
				<p class="a3 f12 c91">Copyright &copy; 2011-2012 Foodnote&nbsp;&nbsp;&nbsp;&nbsp; 湘ICP备09004495号-5</p>
			</div>
		</div>
	</div>
<!-- JavaScript -->
<script type="text/javascript" src="js/jquery-1.6.min.js"></script>
<script type="text/javascript" src="js/jquery.blueberry.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fbba169f4f4508eb5cc1c5618eeb3c59d' type='text/javascript'%3E%3C/script%3E"));
</script>
<div class="none">
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fbba169f4f4508eb5cc1c5618eeb3c59d' type='text/javascript'%3E%3C/script%3E"));
</script>
</div>
</body>
</html>